package com.cx.mapper;

import com.cx.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @auther: Centaury
 * @Date:2023/3/22 - 03 - 22 - 16:34
 */
// 表示此类是mybatis的mapper类 ,也可以在application上进行包扫描 @MapperScan("com.cx.mapper")
@Mapper
// Repository 表示被spring整合
@Repository
public interface StudentMapper {

    List<Student> queryStudentList();

    Student queryStudentById(int id);

    int addStudent(Student student);

    int updateStudent(Student student);

    int deleteStudent(int id);
}
